<template>
  <div id="app">
    <tabComponents/>
    <router-view v-if="isRouterAlive"/>
  </div>
</template>

<script>
import tabComponents from "@/components/TabComponents/TabComponents.vue";
export default {
  name: "App",
  data() {
    return {
      isRouterAlive: true
    };
  },
  provide() {
    return {
      reload: this.reload,
    }
  },
  components: {
    tabComponents
  },
  methods: {
    reload() {
      this.isRouterAlive = false;
      this.$nextTick(function() {
        this.isRouterAlive = true;
      })
    }
  }
};
</script>

<style lang="scss">
html {
  width: 100%;
  height: 100%;
}
body {
  margin: 0;
  width: inherit;
  height: inherit;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background: radial-gradient(200% 100% at bottom center, #f7f7b6, #e96f92, #1b2947);
  background: radial-gradient(220% 105% at top center, #1b2947 10%, #75517d 40%, #e96f92 65%, #f7f7b6 90%);
  background-attachment: fixed;
  position: relative;
}
#app {
  width: inherit;
  height: inherit;
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  background: rgba(252, 252, 252, 0.1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
input,
textarea {
  -webkit-user-select: auto;
  margin: 0;
  padding: 0;
  outline: none;
}
.checkOut {
  padding-right: 10px;
  width: 80px;
  .checkBox {
    padding-left: 10px;
    font-size: 14px;
    font-weight: 500px;
    color: #606266;
    text-align: left;
    cursor: pointer;
    user-select: none;
    .checkCont {
      font-size: 14px;
      line-height: 1;
      display: inline-block;
      white-space: nowrap;
      vertical-align: middle;
      outline: 0;
      position: relative;
      cursor: pointer;
      .checkBtn {
        border: 1px solid #dcdfe6;
        width: 12px;
        height: 12px;
        background: #ffffff;
        border-radius: 2px;
        display: inline-block;
        position: relative;
        z-index: 1;
        transition: all 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
        &:after {
          top: 1px;
          left: 4px;
          border: 1px solid #ffffff;
          border-left: 0;
          border-top: 0;
          width: 3px;
          height: 7px;
          content: "";
          box-sizing: content-box;
          position: absolute;
          transform: rotate(45deg) scaleY(0);
          transition: all 0.05s ease-in;
          transform-origin: center;
        }
      }
    }
    .checkLabel {
      padding-left: 10px;
      line-height: 19px;
      font-size: 14px;
      font-weight: 500;
      white-space: nowrap;
      display: inline-block;
      cursor: pointer;
    }
    &.active {
      .checkCont {
        .checkBtn {
          background-color: rgba(52, 194, 166, 0.85);
          border-color: rgba(52, 194, 166, 0.85);
          &:after {
            transform: rotate(45deg) scaleY(1);
          }
        }
      }
      .checkLabel {
        color: #4d6df3;
      }
    }
  }
}
</style>
